package org.divineryang.service;

import com.github.pagehelper.PageInfo;
import org.divineryang.model.dto.system.SysRoleDto;
import org.divineryang.model.entity.system.SysRole;

import java.util.Map;

/**
 * @program new-bee
 * @Description
 * @Author Diviner Yang
 * @Date 2024/04/20 12:45
 * @Version 1.0
 */
public interface SysRoleService {
    PageInfo<SysRole> findByPage(SysRoleDto sysRoleDto, Integer pageNum, Integer pageSize);

    void saveSysRole(SysRole sysRole);

    void updateSysRole(SysRole sysRole);

    void deleteById(Long roleId);

    Map<String, Object> findAllRoles(Long userId);
}
